package com.store.service;

import com.common.service.AbstractTypedService;
import com.store.dao.StoreDao;
import com.store.entities.Store;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class StoreServiceImpl extends AbstractTypedService<Store,Integer> {

    StoreDao storeDao;
    StoreServiceImpl(StoreDao dao){
        this.storeDao = dao;
        this.dataContext = dao;
    }

    public List<Store> searchFoods(Integer bid){
        return storeDao.findAllByBusinessid(bid);
    }
}
